package com.xiaowanzi.transporter.model;

import java.util.concurrent.atomic.AtomicLong;

public class TimeMetadata {

  private AtomicLong lastTouchTime;

  public TimeMetadata(long lastTouchTime) {
    this.lastTouchTime = new AtomicLong(lastTouchTime);
  }

  public long getLastTouchTime() {
    return lastTouchTime.get();
  }

  public void setLastTouchTime(long lastTouchTime) {
    this.lastTouchTime.set(lastTouchTime);
  }

  @Override
  public String toString() {
    return "TimeMetadata{" +
        "lastTouchTime=" + lastTouchTime +
        '}';
  }
}
